﻿@model LogCondition
@Html.Extra()
@{
    Layout = "~/Views/Shared/OA/_Query.cshtml";
}
@section Keyword
{
    @Html.TextBoxFor(model => model.CreatorUserName, new { placeholder = "操作人", title = "操作人" })
}
@section Advance
{
    <table>
        <tr>
            <th>
                @Html.LabelFor(model => model.TypeId, "业务")
            </th>
            <td>
                @Html.MyNet().DropDownListFor(model => model.TypeId, Url.Action("Read", "LogType"), "Id", "Name", "所有业务")
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(model => model.Operation, "操作")
            </th>
            <td>
                @Html.MyNet().DropDownListFor(model => model.Operation,
                new[]
                {
                    new { Value = (int)Operation.Create, Name = Operation.Create.ToText() },
                    new { Value = (int)Operation.Modify, Name = Operation.Modify.ToText() },
                    new { Value = (int)Operation.Remove, Name = Operation.Remove.ToText() }
                }, "Value", "Name", "所有操作")
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(model => model.CreatorUserName, "操作人")
            </th>
            <td>
                @Html.MyNet().TextBoxFor(model => model.CreatorUserName)
            </td>
        </tr>

        <tr>
            <th>
                @Html.LabelFor(model => model.CreateTimeBegin, "操作时间")
            </th>
            <td>
                @("从") @Html.MyNet().DatePickerFor(model => model.CreateTimeBegin)<br />
                @("至") @Html.MyNet().DatePickerFor(model => model.CreateTimeEnd)
            </td>
        </tr>
    </table>
}
